<?php  
/* VIEJO AUTOCOMPLETE
	if(isset($problemas)){
		if(count($problemas) > 0){
			foreach($problemas as $problema){
				echo trim($problema['Problem']['name'])."|".$problema['Problem']['id']."\n";
			} 
		}
	}
*/

//print_r($problemas['response']['result']['doc']);
//exit;
	if(isset($problemas)){
		if(isset($problemas['response']['result']['doc']) AND count($problemas['response']['result']['doc']) > 0){
			foreach($problemas['response']['result']['doc']  as $indice => $arreglo_problemas){
					echo $arreglo_problemas['str'][1]['value']."|".$arreglo_problemas['str'][0]['value']."\n";

			} 
		}
	}
?>